package com.itheima.homenwork.test01;


import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

class Solution {
    public static void main(String[] args) throws IOException {
        Properties pro = new Properties();
        pro.setProperty("brand", "Iphone11Pro Max");
        pro.setProperty("capacity", "256G");
        pro.setProperty("price", "10899");
        System.out.println(pro);
        pro.store(new FileWriter("iphone.properties"),"手机信息");
    }
}
